Find messages[from-to]

Posted by Alfred on Stack Overflow See other posts from Stack Overflow or by Alfred
Published on 2010-05-13T03:30:23Z Indexed on 2010/05/13 3:34 UTC
Read the original article Hit count: 325

I would like to return all messages from certain key to a certain key. The class should be thread-safe and old keys should be able to be deleted say for example after 30 seconds. I was thinking of using a concurrentskiplistset or concurrentskiplist map. Also I was thinking of deleting the items from inside a newSingleThreadScheduledExecutor. I would like to know how you would implement this or maybe use a library?

© Stack Overflow or respective owner

Related posts about java

Related posts about concurrency